// Gif.
package main

import (
	_ "embed"
	app "gitee.com/go_888/xcgui/xcgui/app"
	imagex "gitee.com/go_888/xcgui/xcgui/imagex"
	widget "gitee.com/go_888/xcgui/xcgui/widget"
	window "gitee.com/go_888/xcgui/xcgui/window"
	xcc "gitee.com/go_888/xcgui/xcgui/xcc"
)

var (
	//go:embed res/bg1.gif
	bg1 []byte
)

var (
	a *app.X结构_全局API
	w *window.Window
)

func main() {
	a = app.X创建(false)
	w = window.X创建窗口(0, 0, 600, 400, "xcgui window", 0, xcc.X窗口样式_默认样式)

	shapeGif := widget.X创建形状GIF(0, 30, 600, 400, w.X句柄)
	shapeGif.X设置图片(imagex.X创建并按内存且自适应(bg1, 0, 0, 0, 0).X句柄)

	w.X显示(true)
	a.X运行()
	a.X退出()
}
